Sync from Nautilus - Fix leaks
authorWilliam Jon McCann <jmccann@redhat.com>
Fri, 19 Oct 2012 17:12:19 +0000 (12:12 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 19 Oct 2012 17:12:19 +0000 (12:12 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=683769
This is from nautilus commit a755aa27c636561a1ab41066484cf9bcc97667f9

gtk/gtkplacessidebar.c

index 3f8788a3e3b928490212f6f47e5dbb67dc4c101f..1df51a376f2e67b527de4f4f503e365caa6c0766 100644 (file)
@@ -908,6 +908,7 @@ update_places (GtkPlacesSidebar *sidebar)
 
                if (!g_file_is_native (root)) {
                        network_mounts = g_list_prepend (network_mounts, mount);
+                       g_object_unref (root);
                        continue;
                }